From 50f91f36cad719b3dc191a049ac06663c3a832d2 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 3 May 2004 10:23:51 +0000 Subject: [PATCH] switch off message expansion. Messages seem to be expanded in the db, didn't find a reason for this in InitializeMessages.inc. If manually changed to {{ns:4}} and similar this turns up correctly in the php version now. --- includes/SpecialAllmessages.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 93a6ea637a..a8d3e851bf 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -2,7 +2,7 @@ function wfSpecialAllmessages() { - global $wgOut, $wgAllMessagesEn, $wgRequest; + global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache; $ot = $wgRequest->getText('ot'); $mwMsg =& MagicWord::get( MAG_MSG ); set_time_limit(0); @@ -12,10 +12,12 @@ $sortedArray = $wgAllMessagesEn; ksort( $sortedArray ); $messages = array(); + $wgMessageCache->disableTransform(); foreach ( $sortedArray as $key => $enMsg ) { - $messages[$key]['enmsg'] = $enMsg; - $messages[$key]['statmsg'] = wfMsgNoDB( $key ); + $wgMessageCache->disable(); + $messages[$key]['statmsg'] = wfMsg( $key ); + $wgMessageCache->enable(); $messages[$key]['msg'] = wfMsg ( $key ); } if ($ot == 'php') { @@ -39,7 +41,7 @@ } else { $comment = ''; } - $txt .= " '".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; + $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; } $txt .= ');'; return $txt; -- 2.20.1